/**
 * InputNumber 组件的主题配置
 */

import type { ComponentToken } from 'antd/es/input-number/style';

export const inputNumberThemeConfig: Partial<ComponentToken> = {
  controlWidth: 90,
  handleWidth: 22,
  handleFontSize: 7,
  handleBg: '#ffffff',
  handleActiveBg: '#fafafa',
  handleHoverColor: '#1890ff',
  handleBorderColor: '#d9d9d9',
  filledHandleBg: '#f0f0f0',
};

export const getInputNumberTheme = (
  customConfig?: Partial<ComponentToken>
): Partial<ComponentToken> => {
  return {
    ...inputNumberThemeConfig,
    ...customConfig,
  };
};

export type { ComponentToken as InputNumberComponentToken } from 'antd/es/input-number/style';

